from django.shortcuts import render
from django.http import HttpResponse

def index(request):
    context = {
        'info':"<a href='http://91wangfan.com'>百度</a>"
    }
    return render(request,'index.html',context=context)

def login(request):
    next = request.GET.get('next')
    text = "登录界面，登录成功以后跳转的页面是:%s" % next
    return HttpResponse(text)

def book(request):
    return render(request,'book.html')

def book_detail(request,book_id,category):
    text = "您的图书id是:%s,图书的分类是:%s" % (book_id,category)
    return HttpResponse(text)